<link rel="stylesheet" type="text/css" href="/score/resource/css/create.css">
<script type="text/javascript" src="/score/resource/js/create.js">
</script>
<div class= "evaluation_title">综合测评>测评申请</div>
<div class="create">
	
	<form action="http://[::1]/score/index.php/student/create" onsubmit= "return check()"
	 enctype="multipart/form-data" method="post" accept-charset="utf-8">
	 	<?php
	 	$i=0;
	 	foreach($rule as $rule_item)
	 	{
	 		$i++;?>

	 		<a name="anchor_<?php echo $i?>"></a>
	 		<?php echo '<span>'.$rule_item['id'].'</span>.<span>'.$rule_item['name'].'</span>'; ?> 	
	 	<div class= "repeat">
	 	<div class = "repeat_content">
	 		<?php
	 		$j = 0;
	 		foreach ($rule_item['select'] as $list)
			{	
				$j++;
				?>
				<div class="select">
					<?php echo $list['name'];?>
					<select name="<?php echo $list['parm'].'_'.$rule_item['id']; ?>[]"
					<?php if($j !=1) echo 'disabled="disabled"' ?> class="select_prize">
						<option value="to_choose">请选择</option>
						<?php foreach ($list['option'] as $option) {?>
							<option value=<?php echo $option['value']; ?>>
								<?php echo $option['display']; ?>
							</option>
						<?php } ?>
					</select>
				</div>
			<?php
			}
		?>
		<br/>
		证明文件
		<div class="upload">
			<!-- <div class="upload_pic">
				<img src="">
				<input type="file" accept="image/*" name="1" class="file" />
			</div>
			<div class="imgPreview"></div>
			<div class="upload_button">
				<img src="http://localhost/score/resource/img/upload.png">
			</div> -->
			<div class="imgPreview"><img ></div>
			<div class="imgCtrl">
				<div class="upload_button">
				<img src="http://localhost/score/resource/img/upload.png">
				</div>
				<div class="upload_pic">
					<input type="file" accept="image/*" name="<?php echo $rule_item['id'];?>[]" class="file" />
				</div>	
			</div>
			
		</div>
		
		<div class= "remark_div">
			<div>备注说明</div>			
			<textarea rows="3" cols="20" name="remark_<?php echo $rule_item['id'];?>[]"></textarea>
			<br/>
		</div>
	</div>
</div>
	<?php 
			if($rule_item['repeat'] ==1)
			{ ?>
				<div class= "add_item"><input type="button" value="添加新项"></div>
			<?php
			}

		 ?>
 	<?php
 	}
 	 ?>
	<!--  	<?php echo $id; ?>.<?php echo $name; ?>
		<?php foreach ($select as $list)
			{	
				?>
				<div class="select">
					<?php echo $list['name'];?>
					<select name=<?php echo $list['parm']; ?> class="select_prize">
						<option value="to_choose">请选择</option>
						<?php foreach ($list['option'] as $option) {?>
							<option value=<?php echo $option['value']; ?>>
								<?php echo $option['display']; ?>
							</option>
						<?php } ?>
					</select>
				</div>

			<?php
			}
		?>
		<br/>
		证明文件
		<div class="upload">
			<div id="upload_pic">
				<img src="">
				<input type="file" accept="image/*" name="1" class="file" />
			</div>
			<div id="imgPreview"></div>
			<div id="upload_button">
				<img src="http://localhost/score/resource/img/upload.png">
			</div>
				
		</div>
		
		<div class= "remark_div">
			<div>备注说明</div>
			
			<textarea rows="3" cols="20" name="remark"></textarea>
			<br/>
		</div> -->
		<input type="submit" name="submit" value="提交信息" />
	</form>
</div>

